﻿using ImoviesBlazorAntPro.Shared.Entities;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace ImoviesBlazorAntPro.Server.Repository
{
    public interface ITeleplayVlinkRepository
    {
        /// <summary>
        /// 添加电视剧播放链接
        /// </summary>
        /// <param name="teleplay"></param>
        void AddTeleplayVlink(TeleplayVlink teleplayVlink);

        /// <summary>
        /// 批量添加电视剧播放链接
        /// </summary>
        /// <param name="teleplayVlinks"></param>
        /// <returns></returns>
        Task BatchAddTeleplayVlink(IEnumerable<TeleplayVlink> teleplayVlinks);

        /// <summary>
        /// 修改电视剧播放链接
        /// </summary>
        /// <param name="teleplay"></param>
        void UpdateTeleplayVlink(TeleplayVlink teleplayVlink);

        /// <summary>
        /// 删除电视剧播放链接
        /// </summary>
        /// <param name="teleplayVlinkId"></param>
        Task DeleteTeleplayVlink(uint teleplayVlinkId);

        /// <summary>
        /// 批量删除
        /// </summary>
        /// <param name="Ids"></param>
        /// <returns></returns>
        void DeleteBatch(List<uint> Ids);

        /// <summary>
        /// 保存操作
        /// </summary>
        /// <returns></returns>
        Task<bool> SaveAsync();
    }
}
